* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: #ffffff;
    background-color: #000;
    padding: 20px 0;
    width: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logost {
    background-image: url("https://pic.imgdb.cn/item/66a63ef1d9c307b7e9e49fa0.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    width: 150px;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    margin: 0 20px;
}

.navigation li a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    white-space: nowrap;
}

.navigation li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navigation li a.cta-button,
.navigation li a.login-button {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.navigation li a.cta-button:hover,
.navigation li a.login-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.3);
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    transform: rotate(45deg);
    animation: moveBackground 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 78, 146, 0.3) 0%, rgba(0, 4, 40, 0.3) 100%);
    filter: blur(50px);
}

@keyframes moveBackground {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }
    100% {
        transform: rotate(45deg) translate(-50px, -50px);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-color);
}

.section-padding {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #ffffff;
}

.product-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-item, .team-member {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-item:hover, .team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.product-item img, .team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-item h3, .team-member h3 {
    padding: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.product-item p, .team-member p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.1rem;
}

.about-content {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 3rem;
    font-size: 1.2rem;
    line-height: 2;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-info a {
    color: #00a8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

.site-footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .navigation {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navigation li {
        margin: 10px;
    }

    .theme-switch-wrapper {
        margin-left: 20px;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .navigation li {
        margin: 5px;
    }

    .navigation li a {
        font-size: 2rem;
        padding: 8px 12px;
    }
}

/* 主题切换开关样式 */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switch-wrapper em {
    margin-right: 10px;
    font-size: 1rem;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 响应式设计中的暗黑模式开关调整 */
@media (max-width: 1200px) {
    .theme-switch-wrapper {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .theme-switch-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .theme-switch-wrapper em {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 正常模式样式 */
:root {
    --text-color: #ffffff;
    --background-color: #004e92;
    --card-background: rgba(255, 255, 255, 0.1);
    --primary-color: #00a8ff;
    --secondary-color: #000428;
    --accent-color: #00a8ff;
}

/* 暗黑模式样式 */
body.dark-theme {
    --text-color: #ffffff;
    --background-color: #000010;
    --card-background: rgba(255, 255, 255, 0.1);
    --primary-color: #00a8ff;
    --secondary-color: #004e92;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
                 0 0 20px rgba(255, 255, 255, 0.7),
                 0 0 30px rgba(255, 255, 255, 0.7),
                 0 0 40px rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-weight: bold;
}

/* 课程预览样式 */
.course-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.course-preview-item {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-preview-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.course-preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.course-preview-item h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.course-preview-item p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.course-preview-item .cta-button {
    margin-top: auto;
}

.center-button {
    text-align: center;
    margin-top: 3rem;
}

/* 博客预览样式 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-item {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-item h3 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 1rem;
    color: #ffffff;
}

.blog-item p {
    font-size: 1.1rem;
    padding: 0 1.5rem 1.5rem;
    color: #ffffff;
}

.read-more {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

/* 博客详情样式 */
.blog-detail {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 3rem;
    font-size: 1.2rem;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    width: 100%;
}

.site-footer .container {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .navigation {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navigation li {
        margin: 10px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.login-button {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #218838;
    text-decoration: none;
}

/* 正常模式样式 */
:root {
    --text-color: #ffffff;
    --background-color: #004e92;
    --card-background: rgba(255, 255, 255, 0.1);
    --primary-color: #00a8ff;
    --secondary-color: #000428;
    --accent-color: #00a8ff;
}

/* 暗黑模式样式 */
body.dark-theme {
    --text-color: #ffffff;
    --background-color: #000010;
    --card-background: rgba(255, 255, 255, 0.1);
    --primary-color: #00a8ff;
    --secondary-color: #004e92;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
                 0 0 20px rgba(255, 255, 255, 0.7),
                 0 0 30px rgba(255, 255, 255, 0.7),
                 0 0 40px rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-weight: bold;
}

/* 课程预览样式 */
.course-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.course-preview-item {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-preview-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.course-preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.course-preview-item h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.course-preview-item p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.course-preview-item .cta-button {
    margin-top: auto;
}

.center-button {
    text-align: center;
    margin-top: 3rem;
}

/* 博客预览样式 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-item {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
}

.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-item h3 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 1rem;
    color: #ffffff;
}

.blog-item p {
    font-size: 1.1rem;
    padding: 0 1.5rem 1.5rem;
    color: #ffffff;
}

.read-more {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

/* 博客详情样式 */
.blog-detail {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 3rem;
    font-size: 1.2rem;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    width: 100%;
}

.site-footer .container {
    text-align: center;
}